<!DOCTYPE html>
<html>
<head>
<title>monitor_define</title>
<#include "/sys/header.html"/>
</head>
<body>
<div class="panel panel-default" id="rrapp" v-cloak>
	<div class="panel-heading">{{title}}</div>
	<form class="form-horizontal">
		<div class="form-group">
			<div class="col-sm-2 control-label">编码</div>
			<div class="col-sm-10">
				<input type="text" class="form-control" v-model="monitorDefine.code" placeholder="编码"/>
			</div>
		</div>
		<div class="form-group">
			<div class="col-sm-2 control-label">描述</div>
			<div class="col-sm-10">
				<input type="text" class="form-control" v-model="monitorDefine.name" placeholder="name"/>
			</div>
		</div>
		<div class="form-group">
			<div class="col-sm-2 control-label">类别</div>
			<div class="col-sm-10">
				<select class="form-control" v-model="monitorDefine.type" placeholder="类别">
					<option value="tableValidate" selected="selected">表验证</option>
				</select>

			</div>
		</div>

		<div class="form-group">
			<div class="col-sm-2 control-label">失败预警方式</div>
			<div class="col-sm-10">
				<template>
					<el-select v-model="misfireInformIds" multiple placeholder="请选择" style="width:100%;border:1px">
						<el-option
								v-for="item in misfireInformIdList"
								:key="item.dictId"
								:label="item.dictValue"
								:value="item.dictId">
						</el-option>
					</el-select>
				</template>
			</div>
		</div>

		<div class="form-group">
			<div class="col-sm-2 control-label">主题</div>
			<div class="col-sm-10">
				<textarea rows="3" class="form-control" v-model="monitorDefine.emailSubject" placeholder="邮件主题"> </textarea>
			</div>
		</div>

		<div class="form-group">
			<div class="col-sm-2 control-label"></div> 
			<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
			&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="back" value="返回"/>
		</div>
	</form>
</div>

<script src="${base}/js/monitor/monitorDefine_add.js?_${.now?string['yyyyMMddhhmmSS']}"></script>
</body>
</html>
